package com.ma.common.config.exception;

import com.ma.common.result.ResultCodeEnum;
import lombok.Data;

@Data
public class MaException extends RuntimeException{
    private Integer code;
    private String message;
    public MaException(Integer code,String message){
        super(message);
        this.code = code;
        this.message = message;
    }

    @Override
    public String toString() {
        return "MaException{" +
                "code=" + code +
                ", message='" + message + '\'' +
                '}';
    }
}
